import request from '@/utils/request'

// 查询钉钉配置列表
export function listDasicDingtalkConfig(query) {
  return request({
    url: '/basic/message/dasicDingtalkConfig/list',
    method: 'get',
    params: query
  })
}

// 查询钉钉配置详细
export function getDasicDingtalkConfig(dingtalkConfigI) {
  return request({
    url: '/basic/message/dasicDingtalkConfig/' + dingtalkConfigI,
    method: 'get'
  })
}

// 新增钉钉配置
export function addDasicDingtalkConfig(data) {
  return request({
    url: '/basic/message/dasicDingtalkConfig',
    method: 'post',
    data: data
  })
}

// 修改钉钉配置
export function updateDasicDingtalkConfig(data) {
  return request({
    url: '/basic/message/dasicDingtalkConfig',
    method: 'put',
    data: data
  })
}

// 删除钉钉配置
export function delDasicDingtalkConfig(dingtalkConfigI) {
  return request({
    url: '/basic/message/dasicDingtalkConfig/' + dingtalkConfigI,
    method: 'delete'
  })
}
